package cn.javase.io_model.bio._01_同步阻塞案例;

import java.io.IOException;
import java.io.PrintStream;
import java.net.InetAddress;
import java.net.Socket;

public class Client {
    public static void main(String[] args) throws IOException {
        try(
            Socket client = new Socket(InetAddress.getLocalHost(), 9999);
            PrintStream ps = new PrintStream(client.getOutputStream())
        ) {
            ps.print("hello");
            ps.flush();
        }
    }
}
